package com.exam.controller;

import com.exam.common.BaseController;
import com.exam.service.TArticleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
* 前台请求参数连接
* @author gaoya
*/
//@Api("管理Api")
@RestController
@RequestMapping("/")
public class TArticleController extends BaseController {

    @Autowired
    private TArticleService tArticleService;

//    /**
//    * 分页查询
//    * @param current 当前页
//    * @param size  每页数量
//    * @return 返回ServResult
//    */
//    @ApiOperation(value = "文章列表项", notes = "分页显示数据量")
//    @ApiImplicitParams({
//            @ApiImplicitParam(name = "current", value = "当前页", required = true, paramType = "path", dataType = "Integer"),
//            @ApiImplicitParam(name = "size", value = "每页数据量", required = true, paramType = "path", dataType = "Integer")
//    })
//    @RequestMapping(value = "findAllByPage/{current}/{size}", method = RequestMethod.POST)
//    public ServResult findAllByPage(@PathVariable("current") int current, @PathVariable("size") int size,
//                                    @RequestBody Map<String, Object> param) {
//        return tArticleService.findListByPage(param, current, size);
//    }
    @RequestMapping("dual")
    public String dual() {
       return tArticleService.dual();
    }
}
